//
//  ZZMediator.h
//  ZZKitDemo
//
//  Created by hfzhangzhang on 2018/8/14.
//  Copyright © 2018年 hfzhangzhang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZZMediator : NSObject

+ (instancetype)sharedInstance;

// 远程App调用入口
- (id)zz_performActionWithUrl:(NSURL *)url completion:(void(^)(NSDictionary *info))completion;

// 本地组件调用入口
- (id)zz_performTarget:(NSString *)targetName action:(NSString *)actionName params:(NSDictionary *)params shouldCacheTarget:(BOOL)shouldCacheTarget;
- (void)zz_releaseCachedTargetWithTargetName:(NSString *)targetName;

@end
